var app = getApp();
Page({
    data: {
        professRecordId:'',
        selectorWeight:[
            {
                id:"1",
                name:"偏胖"
            }, {
                id:"2",
                name:"适中"
            }, {
                id:"3",
                name:"偏瘦"
            }
        ],
        rangeWeightKey: ['偏瘦'],
        arrWeightIndex: 0,
        leftMin__T: 140,
        leftMax__T: 200,
        rightMin__T: 200,
        rightMax__T: 250,
        leftValue__T: 150,
        rightValue__T: 200,
        leftWidth__T: '100',
        rightWidth__T: '100',
        leftMin__A: 15,
        leftMax__A: 20,
        rightMin__A: 20,
        rightMax__A: 25,
        leftValue__A: 15,
        rightValue__A: 20,
        leftWidth__A: '100',
        rightWidth__A: '100',
        leftMin__W: 40,
        leftMax__W: 100,
        rightMin__W: 100,
        rightMax__W: 200,
        leftValue__W: 40,
        rightValue__W: 100,
        leftWidth__W: '100',
        rightWidth__W: '100',
        item:{
            title: '自定义样式',
            activeColor: 'yellow',
            hasTipText: true,
            isSliding: true,
            stars: 4.5
        },
    },
      // 左边滑块滑动的值
      leftChange1: function(e) {
        // console.log('左边改变的值为：' + e.detail.value);
        this.setData({
          leftValue__T: e.detail.value //设置左边当前值
        })
      },
      // 右边滑块滑动的值
      rightChange1: function(e) {
        // console.log('右边改变的值为：' + e.detail.value);
        this.setData({
          rightValue__T: e.detail.value,
        })
      },
      leftChange2: function(e) {
        // console.log('左边改变的值为：' + e.detail.value);
        this.setData({
          leftValue__A: e.detail.value //设置左边当前值
        })
      },
      rightChange3: function(e) {
        // console.log('右边改变的值为：' + e.detail.value);
        this.setData({
          rightValue__W: e.detail.value,
        })
      },
      leftChange3: function(e) {
        // console.log('左边改变的值为：' + e.detail.value);
        this.setData({
          leftValue__W: e.detail.value //设置左边当前值
        })
      },
      // 右边滑块滑动的值
      rightChange2: function(e) {
        console.log('右边改变的值为：' + e.detail.value);
        this.setData({
          rightValue__A: e.detail.value,
        })
      },
      change(e) {
          console.log(e);
      },
    selectorWeightChange(e) {
        this.setData('arrWeightIndex', e.detail.value);
    },
    toNext() {
        swan.navigateTo({
            url: `/packageB/pages/want1/want1`
        });
    },
    onLoad: function (options) {
        console.log(options);
        // // 监听页面加载的生命周期函数
        // if(options.professRecordId == undefined || options.professRecordId == ''){
        //     app.showToastFail('参数不合法！')
        //     return
        // }

        // this.setData({
        //     professRecordId:options.professRecordId
        // })
    }
});